package com.huanghuai.retail.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * <p>
 *
 * </p>
 *
 * @author zjh
 * @since 2023-05-04
 */
@Data
@ToString
@ApiModel(value="addPOGoodsDto", description="新增出入库单商品")
public class AddPOGoodsDto implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 商品id
     */
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "商品id", required = true)
    private Long goodsId;

    /**
     * 数量
     */
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "商品出入库数量", required = true)
    private Integer amount;

    /**
     * 库存数量
     */
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "库存数量", required = true)
    private Integer InventoryNumber;

    /**
     * 金额
     */
    @NotNull(message = "不能为空")

    @ApiModelProperty(value = "总金额", required = true)
    private Double money;

    /**
     * 备注
     */
    @NotEmpty(message = "不能为空")
    @ApiModelProperty(value = "备注", required = true)
    private String po_goods_des;


}
